package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.ExportRFCPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.exportRFCPanel.exportRFCPanelSubs.ExportProgressbarDialog;

public class ExportButtonActionlistener implements ActionListener{
	
	private ExportRFCPanel exportRFCPanel;
	public ExportButtonActionlistener (ExportRFCPanel exportRFCPanel){
		this.exportRFCPanel = exportRFCPanel;
	}
	
	

	@Override
	public void actionPerformed(ActionEvent e) {
		
		if (this.exportRFCPanel.getListPanel().getDisplayTable().getRowCount()>0) {
			
		new ExportProgressbarDialog(this.exportRFCPanel);

		}
			
		
	}

}
